package com.zenith.api.po.vo.edu;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(name = "EduResourceVO", description = "课程资源VO")
public class EduResourceVO {
    
    @Schema(description = "主键ID")
    private Long id;
    
    @Schema(description = "所属课程ID")
    private Long courseId;
    
    @Schema(description = "所属章节ID（可选）")
    private Long chapterId;
    
    @Schema(description = "资源类型：1-视频 2-音频 3-文档 4-图片 5-附件")
    private Integer resType;
    
    @Schema(description = "资源标题")
    private String title;
    
    @Schema(description = "文件存储Key/OSS路径")
    private String fileKey;
    
    @Schema(description = "时长（秒），视频/音频专用")
    private Integer duration;
    
    @Schema(description = "文件大小（字节）")
    private Long size;
    
    @Schema(description = "文件MD5，秒传/去重")
    private String md5;
    
    @Schema(description = "状态：1-正常 2-禁用")
    private Integer status;
    
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    
    @Schema(description = "创建人ID")
    private Long createBy;
    
    @Schema(description = "更新人ID")
    private Long updateBy;
}